package com.hyacinth.forumbite.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @Author: Yun
 * @Date: 2025/5/25
 */
@Data
@Schema(description = "点赞实体类")
@Accessors(chain = true)
public class Like {
    @Schema(description = "id")
    private Long id;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "文章id")
    private Long articleId;

    @Schema(description = "是否点赞 '1表示点赞，0表示取消点赞'")
    private Integer isLiked;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "修改时间")
    private Date updateTime;
}
